package czy.demo.controller;

import czy.demo.pojo.Person;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "person",tags = {"person"},description = "对象操作",position = 0)
@RestController
@RequestMapping("/person")
public class PersonController {

    /* 非请求处理方法不会生成swagger */
    /* 使用对象作为参数，会导致swagger解析对象字段，可以使用对象字段作为参数，同时会导致生成models */
    @GetMapping
    public Person copy(Person person){
        return person;
    }


}
